#include<stdio.h>
int main(){
	char x;
	int letter = 0, blank = 0, digit = 0, other = 0;
	for(int i=0;i<10;i++){
		x = getchar();
		
		if(x == '\n' || x == ' '){
			blank++;
		}else if((x >= 'a' && x <= 'z') || (x >= 'A' && x <= 'Z')){
			letter++;
		}else if(x >= '0' && x <= '9'){
			digit++;	
		}else{
			other++;
		}
		
		
	}
	printf("letter = %d, blank = %d, digit = %d, other = %d",letter,blank,digit,other);
	return 0;
}
